<template>
  <div class="page-container">
    <!-- 导航栏 -->
    <teacherNav></teacherNav>
    <!-- 主体内容 -->
    <div class="content-wrapper">
      <router-view></router-view>
    </div>

    <!-- 页脚 -->
    <teacherfoot></teacherfoot>
  </div>
</template>

<script setup lang="ts">
import teacherNav from '@/components/NavCom/teacherNav.vue';
import teacherfoot from '@/components/footer/teacherFoot.vue';
</script>

<style scoped>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
}


/* 横幅区域 */
.banner {
  background-color: #1e88e5;
  color: white;
  padding: 40px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url('');
  opacity: 0.1;
  z-index: 0;
}

.banner-content {
  position: relative;
  z-index: 1;
  width: 60%;
}

.banner-title {
  font-size: 12px;
  font-weight: normal;
  margin-bottom: 15px;
}

.banner-heading {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: bold;
}

.banner-subtitle {
  font-size: 18px;
  margin-bottom: 20px;
}

.banner-button {
  background-color: #ffc107;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
}

.banner-image {
  position: relative;
  z-index: 1;
  width: 40%;
  height: 300px;
  background-color: #f5f5f5;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* 内容区域 */
.content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.section-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.news-section,
.notice-section {
  width: 48%;
}

.section-header {
  display: flex;
  margin-bottom: 30px;
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  color: #1e88e5;
  margin-right: 20px;
}

.section-subtitle {
  font-size: 20px;
  color: #777;
}

.news-list,
.notice-list {
  border: 1px solid #e0e0e0;
  border-radius: 5px;
}

.news-item,
.notice-item {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}

.news-item:last-child,
.notice-item:last-child {
  border-bottom: none;
}

.news-number {
  font-size: 18px;
  color: #999;
  width: 30px;
  text-align: center;
}

.news-date {
  font-size: 14px;
  color: #999;
}

.news-title {
  font-size: 14px;
  flex-grow: 1;
  margin-left: 10px;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* 确保容器至少占满整个视口高度 */
}

.content-wrapper {
  flex: 1; /* 内容区域自动填充剩余空间 */
}
</style>
